//
//  NewHomeServiceCell.m
//  NewPro
//
//  Created by RYX on 2019/4/25.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import "NewHomeServiceCell.h"
#import "NewHomeServiceModel.h"

@interface NewHomeServiceCell ()
{
    __weak IBOutlet UIImageView *im;
    __weak IBOutlet UILabel *titleLa;
    __weak IBOutlet UILabel *detailLa;
    
}

@end

@implementation NewHomeServiceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(NewHomeServiceModel *)model{
    
    im.image = [UIImage imageNamed:model.img];
    titleLa.attributedText = [StrTool getAttributedTextWithTitle:model.title color:[UIColor colorWithRed:2/255.0 green:2/255.0 blue:2/255.0 alpha:1.0] fontSize:12];
    detailLa.attributedText = [StrTool getAttributedTextWithTitle:model.detail color:[UIColor colorWithRed:153/255.0 green:153/255.0 blue:153/255.0 alpha:1.0] fontSize:10];
}
@end
